﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace GameSchoolApplication.Models
{
	public class Cheat
	{
		[Key]
		public int	  CheatId	{ get; set; }
		public string CheatType	{ get; set; }
		public int?	  Cost		{ get; set; } 
	}

	public class CheatOfGame
	{
		public int Id { get; set; }
		public int GameId { get; set; }

		[ForeignKey("GameId")]
		public virtual Game Game { get; set; }

		public virtual ICollection<Cheat> CheatsOfGame { get; set; } 
	}

	public class StudentCheats
	{
		public int Id		 { get; set; }
		public int StudentId { get; set; }
		public int GameId	 { get; set; }

		[ForeignKey("StudentId")]
		public virtual Person Student { get; set; }

		[ForeignKey("GameId")]
		public virtual Game Game	  { get; set; }

		public virtual ICollection<Cheat> CheatsOfStudent { get; set; }
	}

}